
import requset from "@/utils/requset"
import type { response } from "@/utils/requset"
import type { algorithmResopne,equipmentResopne } from "@/utils/interfaces/respone"


export function getAlgorithmList(pointId:number) {
    return requset.get('/project/getAlgorithmByPointId', {
        pointId: pointId,
    }).then((res: response<algorithmResopne[]>) => {
        if (res.status !== 200) {
            return;
        }
        let data = res.data.data;
        return data;
    })
}

export function getEquipmentList(pointId:number) {
    return requset.get('/project/getEquipmentByPointId', {
        pointId: pointId,
    }).then((res: response<equipmentResopne[]>) => {
        if (res.status !== 200) {
            return;
        }
        let data = res.data.data;
        return data;
    })
}
